﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{
    public class DeviceRecord
    {
        public int ID { get; set; }
        public int DeviceID { get; set; }
        public string State { get; set; } = string.Empty;
        public string UpdateTime { get; set; } = string.Empty;
        public string DeviceName { get; set; } = string.Empty;
        public string DeviceNO { get; set; } = string.Empty;
        public string StartTime { get; set; } = string.Empty;
        public string EndTime { get; set; } = string.Empty;
        public int projectID { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
    }

    public class WorkModeStateRecord
    {
        public int ID { get; set; }
        public int DeviceID { get; set; }
        public int WorkModeState { get; set; }
        public string WorkModeUpdateTime { get; set; } = string.Empty;
        public string DeviceName { get; set; } = string.Empty;
        public string DeviceNO { get; set; } = string.Empty;
        public string StartTime { get; set; } = string.Empty;
        public string EndTime { get; set; } = string.Empty;
        public int projectID { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
    }

    public class DeviceControllerStateRecord
    {
        public int ID { get; set; }
        public int DeviceID { get; set; }
        public string ControllerState { get; set; } = string.Empty;
        public string ControllerStateUpdateTime { get; set; } = string.Empty;
        public string DeviceName { get; set; } = string.Empty;
        public string DeviceNO { get; set; } = string.Empty;
        public string StartTime { get; set; } = string.Empty;
        public string EndTime { get; set; } = string.Empty;
        public int projectID { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
    }
}
